package walkera.cn.http;
import io.reactivex.Single;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import walkera.cn.bean.SampReponse;


public interface XyApiServe {

    @FormUrlEncoded
    @POST("openCloseLed")
    public Single<Void> openCloseLed(@Field("isOpen") boolean isOpen ,@Field("ledColor")  int ledColor) ;


    @POST("getSystemInfo")
    public Single<SampReponse> getSystemInfo( ) ;

    @FormUrlEncoded
    @POST("ledFlicker")
    public Single<Void> ledFlicker(@Field("colors") int[] colors ,@Field("sleepTime")  int sleepTime) ;


    @FormUrlEncoded
    @POST("ledBreath")
    public Single<Void> ledBreath(@Field("ledColor") int  ledColor ,@Field("sleepTime1") int sleepTime1 ,
                                  @Field("sleepTime2")  int sleepTime2) ;


}
